

Pod::Spec.new do |s|
  s.name             = "BCEventBus"
  s.version          = "1.0.0"
  s.summary          = "iOS 事件总线"
  s.description      = <<-DESC.gsub(/^\s*\|?/,'')
                       An optional longer description of Huihui Health

                       | * Markdown format.
                       | * Don't worry about the indent, we strip it!
                       DESC
  s.homepage         = "https://gitlab.leke.cn/health-huihui/app/ios/ios-component/BCEventBus.git"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'BSD'
  s.author           = { "chasel" => "chenchun1@cnstrong.cn" }
  s.source           = { :git => "git@gitlab.leke.cn:health-huihui/app/ios/ios-component/BCEventBus.git", :branch => "master" }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.platform     = :ios, '8.0'
  s.requires_arc = true
  s.default_subspec = 'Core'

  #Event Bus模块
  s.subspec 'Core' do |core|
      core.public_header_files = 'Core/**/BCEventBusKit.h', 'Core/**/BCEventBus.h', 'Core/**/BCEvent.h', 'Core/**/BCEventBusHelper.h'
      core.source_files = 'Core/**/*.{h,m}'
  end
  
  
  s.subspec 'CoreSwift' do |coreSwift|
      coreSwift.source_files = 'CoreSwift/**/*.swift'
      coreSwift.dependency s.name+'/Core'
  end

  # ServiceLoader 模块
  s.subspec 'ServiceLoader' do |serviceloader|
      serviceloader.public_header_files = 'ServiceLoader/**/BCServiceKit.h', 'ServiceLoader/**/BCServicePublic.h', 'ServiceLoader/**/BCServiceProtocol.h', 'ServiceLoader/**/BCServiceLoader.h'
      serviceloader.source_files = 'ServiceLoader/**/*.*'
#      serviceloader.resource_bundles = {
#          'ServiceLoader' => ['ServiceLoader/Assets/*.png','ServiceLoader/*.json']
#      }
  end
  
  
  
  
 

end
